<template>
  <div class="table-page-search-wrapper">
    <el-form :model="form" ref="form" :inline="true">
      <el-row :gutter="20">
        <el-col :span="6">
          <el-form-item label="评语模板名称" prop="name">
            <el-input v-model="form.name" />
          </el-form-item>
        </el-col>
        <el-col :span="6"></el-col>
        <el-col :span="6"></el-col>
      </el-row>

      <el-form-item label="考评环节" prop="model">
        <el-select clearable v-model="form.model">
          <el-option :value="0" label="自评" />
          <el-option :value="0" label="科室" />
          <el-option :value="0" label="党支部" />
          <el-option :value="0" label="纪委" />
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-tooltip class="item" content="查询" effect="dark" placement="top">
          <el-button type="primary" @click="handleSearch" icon="el-icon-search" />
        </el-tooltip>
        <el-tooltip class="item" content="重置" effect="dark" placement="top">
          <el-button @click="handleReset" icon="el-icon-refresh-right" />
        </el-tooltip>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        name: null,
        model: null
      }
    }
  },
  methods: {
    handleSearch() {
      this.$emit('search', this.form)
    },
    handleReset() {
      this.$refs.form.resetFields()
    }
  }
}
</script>

<style>
</style>